#ifndef SOCKS5_DEBUG_H
#define SOCKS5_DEBUG_H
#pragma once

#include <KSockAddress.h>

#if defined _DEBUG && !defined S5_DEBUG_OFF
#   define S5DebugHex(...)  s5_debug_hex(__VA_ARGS__)
#else
#   define S5DebugHex(...)  ((void)0)
#endif

void s5_debug_hex(const void *data, size_t length, const char *title = NULL, const KIpAddress *addr = NULL, size_t width = 16);

#endif // SOCKS5_DEBUG_H